{include file=library/header.html}
{include file=library/curlocal.html}
<hr class="space"/>
<div class="span-24 last">
    <div class="span-3 colborder">
        <h6>{$lang.acategory}</h6>
        <div class="span-3">
            <ul>
                <!-- {foreach from=$acategories item=acategory} -->
                <li><a href="{url app=article&cate_id=$acategory.cate_id}">{$acategory.cate_name|escape}</a></li>
                <!-- {/foreach} -->
            </ul>
        </div>
        <hr />
        <h6>{$lang.new_article}</h6>
        <div class="span-3">
            <ul>
                <!-- {foreach from=$new_articles item=new_article} -->
                <li><a {if $new_article.link}rel="external"{/if} href="{url app=article&act=view&article_id=$new_article.article_id}">{$new_article.title|escape}</a></li>
                <!-- {foreachelse} -->
                <li>{$lang.no_new_article}</li>
                <!-- {/foreach} -->
            </ul>
        </div>
    </div>

	<div class="span-20 last">
		<h1>{$article.title|escape}</h1>
		<div class="span-20 last">
		    <span class="alt">{$article.add_time|date:Y-m-d H:i}</span>
			<!-- {if $article.store_id} -->
			{$article.content|escape:editor}
			<!-- {else} -->
			{$article.content}
			<!-- {/if} -->
		</div>

		<div class="span-20 last">
		  <div class="span-10">
				{$lang.pre_article}:
				<!--{if $pre_article}-->
				<a target="{$pre_article.target}"
					href="{url app=article&act=view&article_id=$pre_article.article_id}">{$pre_article.title|escape}</a>
				<span class="quiet">{$pre_article.add_time|date:Y-m-d H:i}</span>
				<!--{else}-->
				{$lang.no_records}
				<!--{/if}-->
		  </div>
		  <div class="span-10 last">	
				{$lang.next_article}:
				<!--{if $next_article}-->
				<a target="{$next_article.target}"
					href="{url app=article&act=view&article_id=$next_article.article_id}">{$next_article.title|escape}</a>
				<span class="quiet">{$next_article.add_time|date:Y-m-d H:i}</span>
				<!--{else}-->
				{$lang.no_records}
				<!--{/if}-->
		  </div>
		</div>
	</div>
</div>
{include file=library/footer.html}